﻿using MagickNet;

namespace MagickServer.Utils {
    public static class ImageExtensions {
        public static byte[] ToByteArray(this Image img) {
            using (var blob = new Blob()) {
                img.Write(blob);
                return blob.ToArray();
            }
        }
    }
}